<?php

class Webkul_Marketplacepartner_Block_Products extends Mage_Adminhtml_Block_Widget_Grid_Container
{
    public function __construct(){
        $this->_controller = 'products';
        $this->_headerText = Mage::helper('marketplacepartner')->__('Customers Products');
        $this->_blockGroup = 'marketplacepartner';
        parent::__construct();
        $this->_removeButton('add');
        $this->_addButton('suo', array(
                'label'     => 'Show Unapproved Only',
                'onclick'   => 'setLocation(\'' . $this->getShowUnapprovedOnlyUrl() .'\')',
                'class'     => '',
        ));
    }

	public function getShowUnapprovedOnlyUrl(){
		return $this->getUrl('*/*/index/unapp/1');
	}
}

